<?php
namespace haibao\cms\model\data\behavior;

class SiteMonitorCount extends \haibao\cms\model\data\Base{
	const TYPE_MINUTER = 0;
	const TYPE_REG_USER = 1;
	const TYPE_UNREG_USER = 2;
	const SITE_ID_PC = 1;
	const SITE_ID_MOBILE = 2;
	
	public $PV = 0;
	public $CK = 0;
	public $IpCount = 0;
	public $Time;
	public $UV = 0;
	public $SiteId;
		
	public function __construct(){
		parent::__construct();
	
		$this->intField('PV', 'PV',true);
		$this->intField('CK', 'CK',true);
		$this->intField('IpCount', 'IpCount',true);
		$this->dateField('Time','Time',true);
		$this->intField('UV', 'UV',true);
		$this->intField('SiteId','SiteId',true);
		
		$this->setTableName('SiteMonitorCountMinuter');
	}
	
	public function setTableName($tableName){
		parent::setTableName($tableName);
	}
}

	